package duan.entity;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 接口响应类
 *
 * @author duan
 * @date 2020-06-26
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResultVO<T> {
    // 返回码
    private Integer code;

    // 返回消息提示
    private String message;

    // 返回数据
    private T data;

    public Integer getCode() {
        return code;
    }

    public ResultVO<T> setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public ResultVO<T> setMessage(String message) {
        this.message = message;
        return this;
    }

    public T getData() {
        return data;
    }

    public ResultVO<T> setData(T data) {
        this.data = data;
        return this;
    }
}
